<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;


class DeviceContact extends Model {

	//
	protected $table = 'device_contact';
	protected $guarded = ['id'];

	public function province()
	{
		return $this->hasOne("App\Models\Area", "area_id", 'province');
	}
	public function city()
	{
		return $this->hasOne("App\Models\Area", "area_id", "city");
	}
	public function area()
	{
		return $this->hasOne("App\Models\Area", "area_id", "area");
	}

}
